package businessBean;

import java.io.Serializable;
import java.util.Date;

import util.Util;


public class FundWithPositionBean implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 6229408932615113690L;

	private int id;
	
	private Date priceDate;
	
	private String name;
	
	private long shares;
	
	private long price;
	
	private long amount;
	
	private String value;

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public FundWithPositionBean()
	{
		
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getPriceDate() {
		return priceDate;
	}

	public void setPriceDate(Date priceDate) {
		this.priceDate = priceDate;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getShares() {
		return shares;
	}

	public void setShares(long shares) {
		this.shares = shares;
	}

	public long getPrice() {
		return price;
	}

	public void setPrice(long price) {
		this.price = price;
	}

	public long getAmount() {
		return amount;
	}

	public void setAmount(long amount) {
		this.amount = amount;
	}
	
	public String getShareDouble() {
		return Util.showShares(this.shares);
	}

	public String getValueDouble() {
		return Util.showValue(this.shares, this.price);
	}
	
	public String getCash(long cash) {
		return Util.showMoney(cash);
	}
}
